package com.lagou.edu.mvcframework.interceptor;

import com.lagou.edu.mvcframework.context.PermissionContext;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.logging.Logger;

/**
 * @author liuc
 * @date 2021/4/23
 * @description
 **/
public class DefaultPermissionPostInterceptor implements AfterHandler{

    protected Logger log = Logger.getLogger(DefaultPermissionPostInterceptor.class.getName());

    @Override
    public void after(HttpServletRequest request, HttpServletResponse response) throws Exception {
        log.info("======= after handle ========");
        PermissionContext.clear();
    }
}
